package com.android.dongshouzhi.model.auction;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2017/9/12.
 */

public class Auction_JoinBackData implements Serializable {
    @Override
    public String toString() {
        return "{" +"\"type\"" + ":" + type+","
                +"\" id\"" + ":" +"\""+  id+"\""+","
                +"\" mid\"" + ":" +"\""+  mid+"\""+","
                +"\" price\"" + ":" +"\""+  price+"\""+","
                +"\"username\"" + ":" + username+","
                +"\"msg\"" + ":" + msg+","
                +"\"code\"" + ":" + code+","
                +"\"error\"" + ":" + error+","
                +"\"time\"" + ":" +"\""+ time+"\""+ "}";

    }
   private String type;
    private int id;
    private int mid;
    private float price;
    private String username;
    private int time;
    private String code;
    private String msg;
    private String error;
    private List<SortBean> sort;

    public List<SortBean> getSort() {
        return sort;
    }

    public void setSort(List<SortBean> sort) {
        this.sort = sort;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getMid() {
        return mid;
    }

    public void setMid(int mid) {
        this.mid = mid;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }
    public static  class  SortBean implements Serializable, MultiItemEntity
    {
        private int mid;
        private String photo;
        private String username;
        private String count;
        private int itemType;
        public static final int THREE = 3;
        @Override
        public int getItemType() {
            return itemType;
        }
        public SortBean(int itemType) {
            this.itemType = itemType;
        }

        public SortBean(int itemType, int mid
                ,String photo, String username,String count) {
            this.itemType = itemType;
            this.mid = mid;
            this.username = username;
            this.photo = photo;
            this.count = count;
        }
        @Override
        public String toString() {
            return "{" +"\" mid\"" + ":" +"\""+  mid+"\""+","
                    +"\"photo\"" + ":" + photo+","
                    +"\"username\"" + ":" + username+","
                    +"\"count\"" + ":" + count+"," +"}";

        }
        public int getMid() {
            return mid;
        }

        public void setMid(int mid) {
            this.mid = mid;
        }

        public String getCount() {
            return count;
        }

        public void setCount(String count) {
            this.count = count;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getPhoto() {
            return photo;
        }

        public void setPhoto(String photo) {
            this.photo = photo;
        }
    }
}
